//
//  hearViewCell.m
//  Travel
//
//  Created by lanou3g on 15/12/8.
//  Copyright © 2015年 涂晓雨. All rights reserved.
//

#import "hearViewCell.h"

@implementation hearViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self set];
    }
    return self;
}


- (void)set{
    
    self.imageCover1 = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width + 60, 180)];
    self.imageCover1.backgroundColor = [UIColor cyanColor];
    [self.contentView addSubview:self.imageCover1];
    
    self.titleLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(10 ,10 , self.contentView.frame.size.width, 25)];
    self.titleLabel1.text = @"1111111111";
    self.titleLabel1.font = [UIFont systemFontOfSize:22];
    self.titleLabel1.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.titleLabel1];
    
    self.summaryLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(20, 35,self.contentView.frame.size.width - 45 ,50)];
    self.summaryLabel1.numberOfLines = 0;
    self.summaryLabel1.textColor = [UIColor whiteColor];
    self.summaryLabel1.text = @"2222222222";
    [self.contentView addSubview:self.summaryLabel1];
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
